<?php

/**
 * Tabela do texto inicial.
 *
 * @author Fernando Dias Oliveira <rodox17@gmail.com>
 * @package lore
 * @subpackage model
 */

class rel extends Zend_Db_Table_Abstract  
{
	//protected $_table   = "caf02";
	//protected $_primary = "caf02_cod";
	
	public function getAllByCodFunc($cod)
	{
		$db = $this->getAdapter();
		
		return $db->fetchAll("SELECT * FROM caf01, caf02, caf03, caf04, caf05 WHERE caf01_cod = $cod AND caf02_cod_user = caf01_cod AND caf03_cod = caf04_cod_menu AND caf04_cod_menu = caf05_cod GROUP BY caf02_cod");
	}
	
	public function busca($dados)
	{
		$db = $this->getAdapter();
		
		$select = $db->select()->from("")
	}
}

?>
